import request from '@/utils/request'

// 查询计量单位定义列表
export function listFndUomType(query) {
  return request({
    url: '/basic/fndUomType/list',
    method: 'get',
    params: query
  })
}

// 查询计量单位定义详细
export function getFndUomType(uomType) {
  return request({
    url: '/basic/fndUomType/' + uomType,
    method: 'get'
  })
}

// 新增计量单位定义
export function addFndUomType(data) {
  return request({
    url: '/basic/fndUomType',
    method: 'post',
    data: data
  })
}

// 修改计量单位定义
export function updateFndUomType(data) {
  return request({
    url: '/basic/fndUomType',
    method: 'put',
    data: data
  })
}

// 删除计量单位定义
export function delFndUomType(uomType) {
  return request({
    url: '/basic/fndUomType/' + uomType,
    method: 'delete'
  })
}
